<template>
    <div id="main1" style="width: 90%;height: 90%;margin-top: 20px;margin: auto;"></div>
</template>

<script>
import * as echarts from 'echarts';
export default {
    data() {
        return {

        }
    },
    methods() {

    },
    mounted() {
        var chartDom = document.getElementById('main1');
        var myChart = echarts.init(chartDom);
        var option;

        option = {
            
            tooltip: {
                trigger: 'item'
            },
            radar: {
                indicator: [
                    { name: '1月', max: 500 },
                    { name: '2月', max: 500 },
                    { name: '3月', max: 500 },
                    { name: '4月', max: 500 },
                    { name: '5月', max: 500 },
                    { name: '6月', max: 500 },
                    { name: '7月', max: 500 },
                    { name: '8月', max: 500 },
                    { name: '9月', max: 500 },
                    { name: '10月', max: 500 },
                    { name: '11月', max: 500 },
                    { name: '12月', max: 500 }
                ]
            },
            series: [
                {
                    name: '退住走势',
                    type: 'radar',
                    data: [
                        {
                            value: [120,130,110,200,160,140,350,345,260,123,245,365],
                            name: '入院退住'
                        },
                        {
                            value: [330,360,250,368,268,200,120,420,356,269,362,420],
                            name: '居家退住'
                        }
                    ]
                }
            ]
        };
        option && myChart.setOption(option);
    }
}
</script>

<style></style>